package StudyCode.summary.mycollection;

import java.util.Arrays;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CopyArrayUsingArrayscopyOfMethod {
	public static void main(String[] argv) {
		String[] arr = new String[]{"1", "abc", "level", null,
				"www.tah1986.com", "asdf 123"};
		System.out.println(java.util.Arrays.toString(copyArray(arr)));
	}

	public static String[] copyArray(String[] arr) {
		String[] arrNew = Arrays.copyOf(arr, arr.length);
		return arrNew;
	}
}
